package com.HuiShou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.HuiShou.mapper.UserPointsDetailMapper;
import com.HuiShou.domain.UserPointsDetail;
import com.HuiShou.service.IUserPointsDetailService;

/**
 * 积分明细Service业务层处理
 * 
 * @author lyz
 * @date 2025-03-21
 */
@Service
public class UserPointsDetailServiceImpl implements IUserPointsDetailService 
{
    @Autowired
    private UserPointsDetailMapper userPointsDetailMapper;

    /**
     * 查询积分明细
     * 
     * @param id 积分明细主键
     * @return 积分明细
     */
    @Override
    public UserPointsDetail selectUserPointsDetailById(String id)
    {
        return userPointsDetailMapper.selectUserPointsDetailById(id);
    }

    /**
     * 查询积分明细列表
     * 
     * @param userPointsDetail 积分明细
     * @return 积分明细
     */
    @Override
    public List<UserPointsDetail> selectUserPointsDetailList(UserPointsDetail userPointsDetail)
    {
        return userPointsDetailMapper.selectUserPointsDetailList(userPointsDetail);
    }

    /**
     * 新增积分明细
     * 
     * @param userPointsDetail 积分明细
     * @return 结果
     */
    @Override
    public int insertUserPointsDetail(UserPointsDetail userPointsDetail)
    {
        return userPointsDetailMapper.insertUserPointsDetail(userPointsDetail);
    }

    /**
     * 修改积分明细
     * 
     * @param userPointsDetail 积分明细
     * @return 结果
     */
    @Override
    public int updateUserPointsDetail(UserPointsDetail userPointsDetail)
    {
        return userPointsDetailMapper.updateUserPointsDetail(userPointsDetail);
    }

    /**
     * 批量删除积分明细
     * 
     * @param ids 需要删除的积分明细主键
     * @return 结果
     */
    @Override
    public int deleteUserPointsDetailByIds(String[] ids)
    {
        return userPointsDetailMapper.deleteUserPointsDetailByIds(ids);
    }

    /**
     * 删除积分明细信息
     * 
     * @param id 积分明细主键
     * @return 结果
     */
    @Override
    public int deleteUserPointsDetailById(String id)
    {
        return userPointsDetailMapper.deleteUserPointsDetailById(id);
    }
}
